Component({
  options: {
    styleIsolation: "shared",
  },
  properties: {
    startTime: {
      type: String,
      value: "00:00",
    },
    endTime: {
      type: String,
      value: "",
    },
    ltitle: {
      type: String,
      value: "开始时间",
    },
    rtitle: {
      type: String,
      value: "结束时间",
    },
  },
  methods: {
    //多选-取消
    onCancel() {
      this.setData({
        showselector: false,
      });
    },
    //多选-确认
    onConfirm(event) {
      const { picker, value, index } = event.detail;
      console.log(event.detail);
    },
    startChange(e) {
      this.triggerEvent("startchange", e.detail);
    },
    endChange(e) {
      this.triggerEvent("endchange", e.detail);
    },
  },
});
